//
//  DiNetEngine.h
//  DooiooOnline
//
//  Created by koki on 14-11-6.
//  Copyright (c) 2014年 dooioo. All rights reserved.
//


//**************服务地址&请求地址**************************/
#define hostUrl             @"http://120.55.117.101:8081"
#define verifyCodeUrl       @"http://120.55.117.101:8081/sktWs/message/receiveMessage"       //验证码
#define loginUrl            @"http://120.55.117.101:8081/sktWs/wsCoach/login"                //登录
#define registerUrl         @"http://120.55.117.101:8081/sktWs/wsCoach/register"             //注册
#define updatePasswordUrl   @"http://120.55.117.101:8081/sktWs/wsCoach/updatePassword"       //修改密码
#define forgetPasswordUrl   @"http://120.55.117.101:8081/sktWs/wsCoach/forgetPassword"       //忘记密码
#define acceptOrderUrl      @"http://120.55.117.101:8081/sktWs/wsCoach/acceptOrder"          //接单
#define getCoachInfoUrl     @"http://120.55.117.101:8081/sktWs/wsCoach/getCoachInfo"         //获取教练的个人中心
#define getServerTimeUrl    @"http://120.55.117.101:8081/sktWs/wsCoach/getServerTime"        //获取服务器时间
#define endClassUrl         @"http://120.55.117.101:8081/sktWs/wsCoach/endClass"             //学车结束，加入学车记录,提醒学员确认

#define coachNowMoneyUrl    @"http://120.55.117.101:8081/sktWs/wsCoach/coachNowMoney"        //教练员当前余额
#define coachMoneyListUrl   @"http://120.55.117.101:8081/sktWs/wsCoach/coachMoneyList"       //获取教练账单明细
#define messageListUrl      @"http://120.55.117.101:8081/sktWs/message/messageRecordList"    //消息列表
#define removeMessageUrl    @"http://120.55.117.101:8081/sktWs/message/removeMessage"        //清除消息
#define saveAskCompUrl      @"http://120.55.117.101:8081/sktWs/wsCoach/saveAskComp"          //问题反馈
#define coachOrderUrl       @"http://120.55.117.101:8081/sktWs/wsCoach/selectOrderTypeListByCoach"          //个人中心：学车和练车订单列表
#define targetOrderMadeUrl  @"http://120.55.117.101:8081/sktWs/wsCoach/targetOrderMade"                    //对指定单操作:拒绝，接单
#define orderListUrl        @"http://120.55.117.101:8081/sktWs/wsCoach/selectTargetCoachOrderList"          //学车练车:指定单待上课列表请求
#define coachTxAppUrl       @"http://120.55.117.101:8081/sktWs/wsCoach/coachTxApp"           //提现申请单

#define balanceUrl        @"http://120.55.117.101:8081/sktWs/wsCoach/coachNowMoney"            //我的收入当前余额
#define flowUrl           @"http://120.55.117.101:8081/sktWs/wsCoach/coachMoneyList"           //我的收支账单明细

#define lessonStatusUrl   @"http://120.55.117.101:8081/sktWs/wsCoach/isStartClass"              //上课状态
#define startLessonUrl   @"http://120.55.117.101:8081/sktWs/wsCoach/startClass"              //开始上课
#define endLessonUrl     @"http://120.55.117.101:8081/sktWs/wsCoach/endClass"                       //上课结束

#define updateXYUrl      @"http://120.55.117.101:8081/sktWs/wsCoach/updateXY"                      //教练位置上传

#define securityCodeUrl      @"http://120.55.117.101:8081/sktWs/message/receiveSafeMessage"        //安全码接口

#define workUrl            @"http://120.55.117.101:8081/sktWs/wsCoach/index"                       //待上班

#define heartbeatUrl        @"http://go.kuaimaxueche.com:8081/sktWs/message/verLine"           //验证用户在线逻辑
//******************************************************/


#import <Foundation/Foundation.h>

@interface HDNetEngine : NSObject

@property(nonatomic,assign)int shoppingCount;
@property(nonatomic,strong)NSLock* cdlock;
@property(nonatomic,copy)NSString *account;
@property(nonatomic,copy)NSString *password;
@property(nonatomic,copy)NSString *address;
@property(nonatomic,copy)NSString *verifyCode;
@property(nonatomic,strong)HDCoachInfo* coachInfo;
@property(nonatomic,strong)NSString* httpUrl;
@property(nonatomic,strong)NSString* socketUrl;
@property(nonatomic,assign)BOOL loginState;

+(HDNetEngine*)sharedInstance;
-(void)startBroadcast:(NSString*)content;
-(void)showErrorAlertWithMsg:(NSString*)msg;

//验证码
-(void)RequestVerifyCodeWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//登录
-(void)RequestLoginWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//注册
-(void)RequestRegisterWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//修改密码
-(void)RequestUpdatePasswordWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//接单
-(void)RequestAcceptOrderWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//对指定单操作
-(void)RequestFixedOrderOpWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//获取教练的个人中心
-(void)RequestCoachInfoWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//获取服务器时间
-(void)RequestServerTimeWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//学车结束，提醒学员确认
-(void)RequestEndConfirmWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//提现申请单
-(void)RequestWithdrawWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//获取消息列表
-(void)RequestMsgListWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//清除消息
-(void)RequestDeleteMsgListWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//问题反馈
-(void)RequestAskCompWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//忘记密码
-(void)RequestForgetPasswordWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//个人中心：学车和练车订单列表
-(void)RequestCoachOrderWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//我的收入当前余额
-(void)RequestBalanceWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//我的收支账单明细
-(void)RequestFlowWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//学车练车:指定单、待上课列表请求
-(void)RequestOrderListWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//对指定单操作:拒绝，接单
-(void)RequestTargetOrderOpWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//上课结束
-(void)RequestEndLessonWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//上课状态
-(void)RequestLessonStatusWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//开始上课
-(void)RequestStartLessonWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//教练位置上传
-(void)RequestUpdateSiteWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

//安全码接口
-(void)RequestSecurityCodeWithTarget:(id) target hudView:(UIView *)hudView;

//待上班
-(void)RequesWorkWithTarget:(id) target hudView:(UIView *)hudView Data:(NSDictionary *)params;

@end










